CMD=./chromatic_texture_generator.py --chroma 800 --rhythm 8

notes: clean a.ly 

dev:
	python3 -i -c 'exec(open("load.py").read())'

# save:
# 	mv *.pdf ~/mres_thesis/bryn_music_program/misc/
# 	mv *.midi ~/mres_thesis/bryn_music_program/misc/
# 	mv *.ly ~/mres_thesis/bryn_music_program/misc/

clean:
	rm -f *.pdf
	rm -f *.midi
	rm -f *.ly

again: clean a.pdf

a.ly: chromatic_texture_generator.py
	$(CMD) > a.ly.tmp
	mv a.ly.tmp a.ly

debug:
	# pdb3 $(CMD)
	python3 -m pdb $(CMD)

a.pdf: a.ly
	lilypond a.ly

view: a.pdf
	zathura a.pdf

listen: a.midi
	  mscore a.midi

edit:
	$EDITOR chromatic_texture_generator.py a.ly
